/**
 * @description 域名列表
 */
export const domainList = params => ({
  url: '/domain/list',
  method: 'GET',
  params
})
/**
 * @description 删除域名
 */
export const delDomain = (id, data) => ({
  url: `/domain/${id}`,
  method: 'DELETE',
  data
})
/**
 * @description 批量删除域名
 */
export const batchDelDomain = data => ({
  url: '/domain/deletes',
  method: 'DELETE',
  data
})

/**
 * @description 修改域名
 */
export const modifyDomain = (id, data) => ({
  url: `/domain/${id}`,
  method: 'PUT',
  data
})
/**
 * @description 添加域名
 */
export const addDomain = data => ({
  url: '/domain',
  method: 'POST',
  data
})
/**
 * @description 获取域名
 */
export const fetchDomain = id => ({
  url: `/domain/${id}`,
  method: 'GET'
})
